package com.aaa.order.service;/**
 * Created by Windows10 on 2020/1/7
 */

import com.aaa.order.dao.OrderItemDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;
import java.util.List;
import java.util.Map;

/**
 * @FileName: OrderItemServiceImpl
 * @Description:
 * @Author: Lk
 * @CreateTime: 2020/1/7 16:56
 * @Version: 1.0.0
 */
@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    private OrderItemDao orderItemDao;
    /**
    * 查询该订单中的商品列表
    * @Param
    * @return
    **/
    @Override
    public List<Map> getListByParam(Map map) {
        return orderItemDao.getListByParam(map);
    }

    @Override
    public int add(Map map) {
        return orderItemDao.add(map);
    }

    @Override
    public int update(Map map) {
        return orderItemDao.update(map);
    }

    @Override
    public int delete(Map map) {
        return orderItemDao.delete(map);
    }
}
